package com.xgd.phylw.bean;

import java.util.ArrayList;
import java.util.List;

public class MemberExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MemberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMemberNameIsNull() {
            addCriterion("member_name is null");
            return (Criteria) this;
        }

        public Criteria andMemberNameIsNotNull() {
            addCriterion("member_name is not null");
            return (Criteria) this;
        }

        public Criteria andMemberNameEqualTo(String value) {
            addCriterion("member_name =", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameNotEqualTo(String value) {
            addCriterion("member_name <>", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameGreaterThan(String value) {
            addCriterion("member_name >", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameGreaterThanOrEqualTo(String value) {
            addCriterion("member_name >=", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameLessThan(String value) {
            addCriterion("member_name <", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameLessThanOrEqualTo(String value) {
            addCriterion("member_name <=", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameLike(String value) {
            addCriterion("member_name like", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameNotLike(String value) {
            addCriterion("member_name not like", value, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameIn(List<String> values) {
            addCriterion("member_name in", values, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameNotIn(List<String> values) {
            addCriterion("member_name not in", values, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameBetween(String value1, String value2) {
            addCriterion("member_name between", value1, value2, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberNameNotBetween(String value1, String value2) {
            addCriterion("member_name not between", value1, value2, "memberName");
            return (Criteria) this;
        }

        public Criteria andMemberPassIsNull() {
            addCriterion("member_pass is null");
            return (Criteria) this;
        }

        public Criteria andMemberPassIsNotNull() {
            addCriterion("member_pass is not null");
            return (Criteria) this;
        }

        public Criteria andMemberPassEqualTo(String value) {
            addCriterion("member_pass =", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassNotEqualTo(String value) {
            addCriterion("member_pass <>", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassGreaterThan(String value) {
            addCriterion("member_pass >", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassGreaterThanOrEqualTo(String value) {
            addCriterion("member_pass >=", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassLessThan(String value) {
            addCriterion("member_pass <", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassLessThanOrEqualTo(String value) {
            addCriterion("member_pass <=", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassLike(String value) {
            addCriterion("member_pass like", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassNotLike(String value) {
            addCriterion("member_pass not like", value, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassIn(List<String> values) {
            addCriterion("member_pass in", values, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassNotIn(List<String> values) {
            addCriterion("member_pass not in", values, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassBetween(String value1, String value2) {
            addCriterion("member_pass between", value1, value2, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberPassNotBetween(String value1, String value2) {
            addCriterion("member_pass not between", value1, value2, "memberPass");
            return (Criteria) this;
        }

        public Criteria andMemberHeadIsNull() {
            addCriterion("member_head is null");
            return (Criteria) this;
        }

        public Criteria andMemberHeadIsNotNull() {
            addCriterion("member_head is not null");
            return (Criteria) this;
        }

        public Criteria andMemberHeadEqualTo(String value) {
            addCriterion("member_head =", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadNotEqualTo(String value) {
            addCriterion("member_head <>", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadGreaterThan(String value) {
            addCriterion("member_head >", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadGreaterThanOrEqualTo(String value) {
            addCriterion("member_head >=", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadLessThan(String value) {
            addCriterion("member_head <", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadLessThanOrEqualTo(String value) {
            addCriterion("member_head <=", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadLike(String value) {
            addCriterion("member_head like", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadNotLike(String value) {
            addCriterion("member_head not like", value, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadIn(List<String> values) {
            addCriterion("member_head in", values, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadNotIn(List<String> values) {
            addCriterion("member_head not in", values, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadBetween(String value1, String value2) {
            addCriterion("member_head between", value1, value2, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberHeadNotBetween(String value1, String value2) {
            addCriterion("member_head not between", value1, value2, "memberHead");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneIsNull() {
            addCriterion("member_phone is null");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneIsNotNull() {
            addCriterion("member_phone is not null");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneEqualTo(String value) {
            addCriterion("member_phone =", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneNotEqualTo(String value) {
            addCriterion("member_phone <>", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneGreaterThan(String value) {
            addCriterion("member_phone >", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("member_phone >=", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneLessThan(String value) {
            addCriterion("member_phone <", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneLessThanOrEqualTo(String value) {
            addCriterion("member_phone <=", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneLike(String value) {
            addCriterion("member_phone like", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneNotLike(String value) {
            addCriterion("member_phone not like", value, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneIn(List<String> values) {
            addCriterion("member_phone in", values, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneNotIn(List<String> values) {
            addCriterion("member_phone not in", values, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneBetween(String value1, String value2) {
            addCriterion("member_phone between", value1, value2, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberPhoneNotBetween(String value1, String value2) {
            addCriterion("member_phone not between", value1, value2, "memberPhone");
            return (Criteria) this;
        }

        public Criteria andMemberTempIsNull() {
            addCriterion("member_temp is null");
            return (Criteria) this;
        }

        public Criteria andMemberTempIsNotNull() {
            addCriterion("member_temp is not null");
            return (Criteria) this;
        }

        public Criteria andMemberTempEqualTo(Integer value) {
            addCriterion("member_temp =", value, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempNotEqualTo(Integer value) {
            addCriterion("member_temp <>", value, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempGreaterThan(Integer value) {
            addCriterion("member_temp >", value, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempGreaterThanOrEqualTo(Integer value) {
            addCriterion("member_temp >=", value, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempLessThan(Integer value) {
            addCriterion("member_temp <", value, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempLessThanOrEqualTo(Integer value) {
            addCriterion("member_temp <=", value, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempIn(List<Integer> values) {
            addCriterion("member_temp in", values, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempNotIn(List<Integer> values) {
            addCriterion("member_temp not in", values, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempBetween(Integer value1, Integer value2) {
            addCriterion("member_temp between", value1, value2, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberTempNotBetween(Integer value1, Integer value2) {
            addCriterion("member_temp not between", value1, value2, "memberTemp");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountIsNull() {
            addCriterion("member_discount is null");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountIsNotNull() {
            addCriterion("member_discount is not null");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountEqualTo(Double value) {
            addCriterion("member_discount =", value, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountNotEqualTo(Double value) {
            addCriterion("member_discount <>", value, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountGreaterThan(Double value) {
            addCriterion("member_discount >", value, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountGreaterThanOrEqualTo(Double value) {
            addCriterion("member_discount >=", value, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountLessThan(Double value) {
            addCriterion("member_discount <", value, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountLessThanOrEqualTo(Double value) {
            addCriterion("member_discount <=", value, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountIn(List<Double> values) {
            addCriterion("member_discount in", values, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountNotIn(List<Double> values) {
            addCriterion("member_discount not in", values, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountBetween(Double value1, Double value2) {
            addCriterion("member_discount between", value1, value2, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberDiscountNotBetween(Double value1, Double value2) {
            addCriterion("member_discount not between", value1, value2, "memberDiscount");
            return (Criteria) this;
        }

        public Criteria andMemberMunberIsNull() {
            addCriterion("member_munber is null");
            return (Criteria) this;
        }

        public Criteria andMemberMunberIsNotNull() {
            addCriterion("member_munber is not null");
            return (Criteria) this;
        }

        public Criteria andMemberMunberEqualTo(Integer value) {
            addCriterion("member_munber =", value, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberNotEqualTo(Integer value) {
            addCriterion("member_munber <>", value, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberGreaterThan(Integer value) {
            addCriterion("member_munber >", value, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberGreaterThanOrEqualTo(Integer value) {
            addCriterion("member_munber >=", value, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberLessThan(Integer value) {
            addCriterion("member_munber <", value, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberLessThanOrEqualTo(Integer value) {
            addCriterion("member_munber <=", value, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberIn(List<Integer> values) {
            addCriterion("member_munber in", values, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberNotIn(List<Integer> values) {
            addCriterion("member_munber not in", values, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberBetween(Integer value1, Integer value2) {
            addCriterion("member_munber between", value1, value2, "memberMunber");
            return (Criteria) this;
        }

        public Criteria andMemberMunberNotBetween(Integer value1, Integer value2) {
            addCriterion("member_munber not between", value1, value2, "memberMunber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}